package com.itdachang.design.behavioral.visitor;

/**
 * @author gcq
 * @create 2022-02-16
 */
public class MainTest {
    public static void main(String[] args) {
        XiaoAi xiaoAi = new XiaoAi();
        xiaoAi.answerQueston();

        // 升级
        UpdatePackage updatePackage = new UpdatePackage("联网增强功能");
        xiaoAi.acceptUpdate(updatePackage);

        xiaoAi.answerQueston();
    }
}